# -*- coding: utf-8 -*-
"""
main
2025/9/8
@author: zhangzida
"""
from Page import Page
from selenium import webdriver
import pytest
from utils import logger
loger=logger(__name__)

@pytest.fixture(scope='function')
def driver():

    driver=webdriver.Chrome()
    driver.implicitly_wait(10)
    driver.maximize_window()
    yield driver


def test_login(driver):
    loger.info("测试执行开始")
    po=Page(driver)
    po.luoji_login()
    loger.info("测试执行结束")